<template>
  <div class="max">
    <my-header></my-header>
    <div class="cont-nof teaAtd">
      <div class="tl situation-item">
        <div class="situation-item-titl">教师入校考勤统计信息</div>
        <div class="count-table tl">
          <li class="line">总人数<span class="fr">{{form.total}}</span></li>
          <a href="#chidao" v-for="item in form.list">
            <li class="line">{{item.status}}<span class="fr">{{item.list.length}}人</span></li>
          </a>
          <li class="line">统计时间<span class="fr">{{form.time}}</span></li>
        </div>
      </div>
      <div class="tl situation-item" id="chidao" v-for="item in form.list">
        <div class="situation-item-titl">{{item.status}}</div>
        <div class="count-table tl">
          <div class="flex name">
						<span v-for="obj in item.list">
              <span>
                {{obj}}
              </span>
						</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "MsgTem",
    components: {},
    data() {
      return {
        currentTime: '',
        form: {
          total: 0,
          list: [],
          time: ''
        }
      }
    },
    methods: {
    },
    created() {
      this.form = this.$route.query;
    },
    mounted() {

    }
  }
</script>

<style scoped>
  .teaAtd {
    width: 98%;
    margin: auto;
    margin-top: 1rem;
  }

  .situation-item {
    position: relative;
    border: 1px solid #2aa7e1;
    box-sizing: border-box;
    width: 100%;
    margin: 1.5rem 0;
    padding: 3rem 1rem 1rem 1rem;
  }

  .situation-item-notitl {
    padding: 1rem;
  }

  .situation-item-titl {
    position: absolute;
    top: -1.2rem;
    background: #2aa7e1;
    color: #fff;
    padding: 0 1rem;
  }

  .situation-item li {
    padding: 1rem;
    list-style: square;
    box-sizing: border-box;
  }

  .name {
    width: 100%;
    margin: auto;
    flex-wrap: wrap;
  }

  .name span {
    width: 20%;
    text-align: center;
    padding: 0.5rem 0;
  }

  .situation-item span,
  .situation-item li {
    color: #2c3e50 !important;
  }
</style>
